﻿using System;

namespace IceDog.Lib.Event.BoildWater.BoildWater.Warning
{
    class Light
    {
        /// <summary>
        /// 改变灯光颜色
        /// </summary>
        /// <param name="sender">事件通知者</param>
        /// <param name="e">加热事件</param>
        public void ChangeLightColor(Object sender,BoiledEventArgs e)
        {
            Console.WriteLine(e.Temperature == 100 ? "Light:红色" : "Light: 绿色");
        }
    }
}
